package com.company.user.req;

import com.company.user.entity.PositionEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.checkerframework.checker.units.qual.A;

import java.util.Date;

@ApiModel("添加职位入参")
public class AddPositionReq {

    @ApiModelProperty(value = "职位名称", required = true)
    private String positionName;

    @ApiModelProperty(value = "部级id", required = true)
    private String departmentId;

    @ApiModelProperty(value = "状态 0 1 2 ", required = true)
    private Integer positionStatus;

    @ApiModelProperty(value = "排序", required = true)
    private Integer sort;

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getPositionStatus() {
        return positionStatus;
    }

    public void setPositionStatus(Integer positionStatus) {
        this.positionStatus = positionStatus;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void copyTo(PositionEntity position){
        position.setDepartmentId(this.departmentId);
        position.setPositionName(this.positionName);
        position.setPositionStatus(this.positionStatus);
        position.setSort(this.sort);
    }
}
